package com.zhf.model;

import java.io.Serializable;

public class UserMessageWithAuth implements Serializable {
    private static final long serialVersionUID = 7160237494330063318L;

    private boolean isAuth;
    private UserMessage userMessage;

    public UserMessageWithAuth() {
    }

    public UserMessageWithAuth(boolean isAuth, UserMessage userMessage) {
        this.isAuth = isAuth;
        this.userMessage = userMessage;
    }

    public boolean isAuth() {
        return isAuth;
    }

    public void setAuth(boolean auth) {
        isAuth = auth;
    }

    public UserMessage getUserMessage() {
        return userMessage;
    }

    public void setUserMessage(UserMessage userMessage) {
        this.userMessage = userMessage;
    }

    @Override
    public String toString() {
        return "UserMessageWithAuth{" +
                "isAuth=" + isAuth +
                ", userMessage=" + userMessage +
                '}';
    }
}
